package com.zjj.edu.system.service;

import com.zjj.edu.system.domain.SysCourseGoods;
import com.zjj.edu.system.domain.SysTeachGoods;

import java.util.List;

/**
 * 教学物品Service接口
 *
 * @author zjj
 * @date 2020-06-30
 */
public interface ISysTeachGoodsService
{
    /**
     * 查询教学物品
     *
     * @param id 教学物品ID
     * @return 教学物品
     */
    public SysTeachGoods selectSysTeachGoodsById(Long id);

    /**
     * 查询教学物品列表
     *
     * @param sysTeachGoods 教学物品
     * @return 教学物品集合
     */
    public List<SysTeachGoods> selectSysTeachGoodsList(SysTeachGoods sysTeachGoods);

    /**
     *
     * @param id
     * @return
     */
    public List<SysCourseGoods> selectSysCourseGoodsById(Long id);

    /**
     *
     * @param sysTeachGoods
     * @return
     */
    List<SysTeachGoods> selectSysTeachGoodsListByIds(SysTeachGoods sysTeachGoods);

    /**
     * 新增教学物品
     *
     * @param sysTeachGoods 教学物品
     * @return 结果
     */
    public int insertSysTeachGoods(SysTeachGoods sysTeachGoods);

    /**
     * 修改教学物品
     *
     * @param sysTeachGoods 教学物品
     * @return 结果
     */
    public int updateSysTeachGoods(SysTeachGoods sysTeachGoods);

    /**
     * 批量删除教学物品
     *
     * @param sysCampus 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysTeachGoodsByIds(SysTeachGoods sysCampus);

    /**
     * 检查名称是否已存在
     * @param sysTeachGoods
     * @return
     */
    String checkNameUnique(SysTeachGoods sysTeachGoods);

    int removeCourseGoods(Long id);
}
